package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.historyRFCPanel;

import java.awt.BorderLayout;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.Mainframe;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.SimpleCMSPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.historyRFCPanel.historyRFCPanelSubs.HistoryRFCFunctionPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.historyRFCPanel.historyRFCPanelSubs.HistoryRFCListPanel;

public class HistoryRFCPanel extends SimpleCMSPanel {
	private static final long serialVersionUID = 1L;

	private Mainframe mainframe;
	private HistoryRFCListPanel historyRFCListPanel;
	private HistoryRFCFunctionPanel historyRFCFunctionPanel;

	public HistoryRFCPanel(String name, Mainframe parent) {
		super(name, parent);
		this.mainframe = parent;
		this.setLayout(new BorderLayout());
		this.historyRFCListPanel = new HistoryRFCListPanel(this);
		this.historyRFCFunctionPanel = new HistoryRFCFunctionPanel(this);
		this.add(historyRFCListPanel, BorderLayout.CENTER);
		this.add(historyRFCFunctionPanel, BorderLayout.EAST);
	}

	public HistoryRFCListPanel getHistoryRFCListPanel() {
		return historyRFCListPanel;
	}

	public HistoryRFCFunctionPanel getHistoryRFCFunctionPanel() {
		return historyRFCFunctionPanel;
	}

	public Mainframe getMainframe() {
		return mainframe;
	}
}